<template>
  <view class="container">
    <view class="menu-list" v-if="userStore.userKpiPosts">
    	<view class="list-cell" v-for="item in userStore.userKpiPosts" :key="item.id" @click="toKpi(item)">
    	  <view class="menu-item-box list-cell-arrow">
    	    <view class="iconfont menu-icon">
    				<uni-icons type="auth" color="#007AFF" size="16"></uni-icons>
    			</view>
    	    <view>岗位：</view>
    			<view class="menu-item-box-text">{{`${item.userPostName}【${item.level}】`}}</view>
    	  </view>
    	</view>
    	
    </view>
  </view>
</template>

<script setup>
import { ref } from "vue";
import modal from "@/plugins/modal"
import useUserStore from '@/store/modules/user'
const userStore = useUserStore()
const toKpi = (item) => {
	uni.navigateTo({
		url: `/pages/kpi/kpiPostSchedule?kpiPostsId=${item.id}`
	})
}
</script>

<style lang="scss">
</style>
